import request from '@/axios/index'
// 出来请求的方法
import {
  u
} from './url'
// 登录
export const loginApi = {
  login(data) {
    return request({
      url: u.login,
      method: 'post',
      data
    })
  },
  logout(data) {
    return request({
      url: u.logout,
      method: 'post',
      data
    })
  }
}
export const businessStatus = {
  play(data) {
    return request({
      url: u.getPlayUrl,
      method: 'post',
      data,
      dataType: 'json',
    })
  }
}